package cn.jiyun.service.fegin;

import cn.jiyun.entity.day10.Option;
import cn.jiyun.entity.day10.Topic;
import cn.jiyun.entity.day10.TopicVO;
import cn.jiyun.entity.day6.Tabs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day10-topic")
public interface TopicFeginService {
/*
 * @description:
 * @author: sjt
 * @date: 2023/8/31 11:13
 * @param: [arr]
 * @return: java.util.List<cn.jiyun.entity.day10.TopicVO>
 * @annotate:根据试题id集合/查询id对应的所有试题
**/
    @PostMapping("/topic/findTestPaperTopicList")
    List<TopicVO> findTestPaperTopicList(@RequestBody List<Integer> arr);
/*
 * @description:
 * @author: sjt
 * @date: 2023/8/31 11:13
 * @param: [tid]
 * @return: java.util.List<cn.jiyun.entity.day10.Option>
 * @annotate:根据试题的id/返回此试题的选项集合
**/
    @GetMapping("/topic/findNewOption")
    List<Option> findNewOption(@RequestParam("tid") Integer tid);
}
